<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@page import="wt.httpgw.URLFactory"%>
<%
String baseUrl = new URLFactory().getBaseHREF();
%>
<head>
<title>创建文件夹</title>
</head>
<body>
<center>
<div style="display: none">
<div style="margin: 10px 0;"></div>
<div id="createFolder" title="创建文件夹" iconCls="icon-kms-related"
	style="width: 750px; height: 400px; padding: 5px;">
<div style="padding: 10px 0 10px 60px">
<form method="post" enctype="multipart/form-data" name="folderForm"
	id="folderForm">
<table>
	<tr>
		<td style="width: 100px">*名称</td>
		<td><input   name="folderName" id="folderName"
			type="text" size="65" /></td>
	</tr>
	<tr>
		<td>说明</td>
		<td><textarea name="desc" id="desc" cols="65" rows="5"></textarea>
		</td>
	</tr>
	<tr>
		<td><input id="ffolder" name="ffolder" type="hidden"
			value="/Default/"></input></td>
		<td align="center"><label> <a href="javascript:void(0)"
			class="easyui-linkbutton" onclick="folderSubmitForm()">提交</a> <a
			href="javascript:void(0)" class="easyui-linkbutton"
			onclick="javascript:cancle()">清除</a> </label></td>
	</tr>
</table>
</form>
</div>
</div>
</div>
</center>
<script type="text/javascript">


	function folderSubmitForm(){
		var node = $('#folderTree').tree('getSelected');
		var path=getFullPath(node)+"/";
		document.getElementById("ffolder").value=path;
		var folderName=$("#folderName").val();
		if(folderName==""||folderName==null)
		{
			 alert("名称不能为空");
			 return;
		}
		$('#folderForm').submit();
		}
		
	function create()
	{
		$("#folderForm").form({
			url:'<%=baseUrl%>shmged/jsp/com/shlcm/documents/jspCreateFolder.jsp',
			onSubmit:function (){
			},
			success:function (data){
				if(data.indexOf("ERROR") != -1){
					$.messager.alert('提示', data);
					cancle();
				}else{
					$.messager.alert('提示', data);
					cancle();
				}
			},
			onLoadError:function (){
			}
		});
	}

	function createFolder(){
		  $('#createFolder').window({
			     collapsible:false,
			     minimizable:false,
			     maximizable:false,
			     resizable:false,
				 width:800,
			     height:400,
			     modal:true,
			     left:300,
			     onClose:function(){
			  		refe();
			  		 $('#createFolder').window("destroy");
			     }
			 });
	}
//查询结果面板 取消按钮
	function cancle(){
		$('#createFolder').window('close');
	}


	create();
</script>
</body>

</html>


